const models = require(__base + '/models');

const logger = require(__util + '/logger');

// 记录日志
const insertLog = async (logType, logContent) => {
  try {
    return await models.ServiceLog.create({
      logType: logType,
      logContent: logContent
    })
  } catch (err) {
    logger.error(err)
  }
}

module.exports = {
  insertLog: insertLog
}